import request from '@/utils/request'

export function findMemberById(patientId) { 
  return request({
    url: `/sn/member/${patientId}`,  // 修改为反引号
    method: 'get',
    params: request
  });
}

// 查询家属列表
export function listMember(query) {
  return request({
    url: '/sn/member/list',
    method: 'get',
    params: query
  })
}

// 查询家属详细
export function getMember(familyMemberId) {
  return request({
    url: '/sn/member/' + familyMemberId,
    method: 'get'
  })
}

// 新增家属
export function addMember(data) {
  return request({
    url: '/sn/member',
    method: 'post',
    data: data
  })
}

// 修改家属
export function updateMember(data) {
  return request({
    url: '/sn/member',
    method: 'put',
    data: data
  })
}

// 删除家属
export function delMember(familyMemberId) {
  return request({
    url: '/sn/member/' + familyMemberId,
    method: 'delete'
  })
}



